package org.tddx.csmis.test;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class FeignCtrl {
	
	@Autowired
	FeignService service;
	
    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    @ResponseBody
    public String home(@RequestParam String name){
        return service.home(name);
    }
	
}
